<template>
  <div class="MTitle">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "MTitle",
  data() {
    return {}
  },
  components: {},
  mounted() {
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
@import "../../style/var.scss";
.MTitle{
  margin-bottom: $gap;
  font-size: px2(16);
  font-weight: bold;
  padding-left: px2(10);
  position: relative;
  &::before{
    content: '';
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: $mainColor;
    opacity: 0.8;
    width: px2(4);
    height: px2(16);
    border-radius: 0;
  }
}
</style>
